Determining addresses of electrical components arranged in a daisy chain

ABSTRACT

In one aspect, a system includes electrical components arranged in a daisy chain that include a first electrical component disposed at a first end of the daisy chain and a second electrical component disposed at an opposite end of the daisy chain than the first end. Each of the first and second electrical components includes an input port, an output port and a common port. The input port of the first electrical component is coupled to one of a supply voltage port or ground and the common ports of the first and second electrical components are coupled to the other one of the supply voltage or the ground. An address of the second electrical component is determined before addresses of the other of the electrical components are determined, and the addresses determine a position of an electrical component with respect to the other of the electrical components.

RELATED APPLICATION

The application claims priority to and is a continuation application ofU.S. patent application Ser. No. 12/354,891, filed on Jan. 16, 2009 andentitled “DETERMINING ADDRESSES OF ELECTRICAL COMPONENTS ARRANGED IN ADAISY CHAIN,” which is incorporated herein in its entirety, and thepresent application is assigned to the assignee of the parentapplication.

BACKGROUND

A master-slave system includes a master circuit that controls one ormore slave circuits. A master-slave system may be used in a number ofapplications. One such application is a sensor system having multiplesensor devices arranged along a two-wire bus in a daisy-chainarrangement. One wire of the two-wire bus includes a supply voltage andthe other wire includes ground. Generally, the sensor devices functionas slave circuits receiving commands from a master circuit. In thisconfiguration, the two-wire bus is used for multiple purposes. Onepurpose is to provide power to the sensor devices while reducing thenumber of wires to avoid extra weight and to reduce the number ofconnections in a car, for example. Another purpose is to allowcommunication between the master circuit and the sensor devices. Oneimportant diagnostic feature includes the master circuit's ability todetermine where in the daisy-chain arrangement a sensor has detected afault. Therefore, it is important for an address of each sensor deviceto be determined. In one example, an addressing scheme should be simplein order to reduce cost.

SUMMARY

In one aspect, a system includes electrical components arranged in adaisy chain that include a first electrical component disposed at afirst end of the daisy chain and a second electrical component disposedat an opposite end of the daisy chain than the first end. Each of thefirst and second electrical components includes an input port, an outputport and a common port. The input port of the first electrical componentis coupled to one of a supply voltage port or ground and the commonports of the first and second electrical components are coupled to theother one of the supply voltage or the ground. An address of the secondelectrical component is determined before addresses of the other of theelectrical components are determined, and the addresses of theelectrical components determine a position of an electrical componentwith respect to the other of the electrical components in the daisychain.

In another aspect, a method includes determining addresses of slavecomponents in a master-slave system that includes a master component andslave components in which a first slave component is disposed at a firstend of the daisy chain and connected to the master component and asecond slave component which is disposed at an opposite end of the daisychain from the first end. The determining includes receiving at leastone signal from the master component and determining the addresses ofslave components arranged in the daisy chain based on the at least onesignal by determining an address of the second slave component beforedetermining addresses of the other of the slave components and bydetermining a position of a slave component with respect to the other ofthe slave components.

In a further aspect, an electrical component disposed in a daisy chainincludes an input port, an output port, a third port and a currentdetection circuit connected to the input port, the output port and thecommon port. The current detection circuit is configured to measure anoutput current at the output port. The electrical component alsoincludes a counter used to determine an address of the electricalcomponent, a sensor circuit and a control logic circuit connected to theinput port, the current detection circuit, the counter and the sensorcircuit. The control logic circuit is configured to determine theaddress of the electrical component based on the output current, and theaddress of the electrical component determines a position of theelectrical component with respect to other electrical componentsdisposed in the daisy chain.

In a still further aspect, an article includes a machine-readable mediumthat stores executable instructions to determine an address of anunknown slave component in a master-slave system that includes a mastercomponent and slave components in which a first slave component isdisposed at a first end of the daisy chain and connected to the mastercomponent and a last slave component is disposed at an opposite end ofthe daisy chain from the first end. The instructions causing a machineto receive at least one signal from the master component and determinethe address of the unknown slave component arranged in the daisy chainbased on the at least one signal. The instructions causing a machine todetermine the address of the unknown slave component includesinstructions causing a machine to determine the address of the unknownslave component before determining addresses of the other of the slavecomponents if the unknown slave component is the last slave component.The instructions causing a machine to determine the address of theunknown slave component includes instructions causing a machine todetermine a position of the unknown slave component with respect to theother of the slave components.

In another aspect, a system includes electrical components arranged in adaisy chain and including a first electrical component disposed at afirst end of the daisy chain and a second electrical component disposedat an opposite end of the daisy chain than the first end. Each of thefirst and second electrical components includes an input port, an outputport and a third port. The input port of the first electrical componentis coupled to one of a supply voltage port or ground and the third portof the first electrical component is coupled to the other one of thesupply voltage or the ground. An address of the second electricalcomponent is determined before addresses of the other of the electricalcomponents are determined and the addresses of the electrical componentsdetermine a position of an electrical component with respect to theother of the electrical components in the daisy chain.

DESCRIPTION OF THE DRAWINGS

The foregoing features of the invention, as well as the invention itselfmay be more fully understood from the following detailed description ofthe drawings, in which:

FIG. 1 is a diagram of an example of a master-slave system.

FIG. 2 is a functional block diagram of an example of a slave component.

FIG. 3 is a flowchart of a process to determine addresses of slavecomponents in the master-slave system.

FIG. 4 is a circuit diagram of an embodiment of the slave component inFIG. 2.

FIG. 5 is a flowchart of a self-addressing process to determine anaddress of the slave component.

FIG. 6 is a diagram of another example of the master-slave system.

FIG. 7 is a computer embodiment of the slave component on which theprocess of FIG. 5 may be implemented.

FIG. 8 is an example of an electrical component is a daisy chain system.

DETAILED DESCRIPTION

Described herein are techniques for a system including electricalcomponents arranged in a daisy chain (called herein a daisy chainsystem) that independently determine their own address. In particular,the electrical components determine their own respective addresses inturn starting with the electrical component furthest from a power source(e.g., a master component) in the daisy chain (called herein a lastelectrical component) and working down the daisy chain until all theelectrical components have an address. The techniques described hereinprovide a number of advantages. One advantage is that the electricalcomponents are self-addressable, meaning each electrical componentdetermines its own address. In one example, the address defines aposition of an electrical component in the daisy chain with respect tothe other electrical components. Another advantage is that eachelectrical component may be fabricated generically so that if anelectrical component fails anywhere in the daisy chain system, it can beeasily replaced by any other electrical component without anymodifications. A further advantage is that the daisy chain system doesnot need to know the number of electrical components present in thedaisy chain. Other advantages will be apparent to one of ordinary skillin the art.

Described herein is one specific embodiment of the daisy chain system, amaster-slave system including a master component and slave components.In the master-slave system, the slave components determine their ownrespective addresses in turn starting with the slave component furthestfrom the a master component in the daisy chain (called herein a lastslave component). Other embodiments do not require a master-slavesystem. For example, electrical components may independently determinetheir addresses at power-up without the function of a master componentbeing required (FIG. 8).

Referring to FIG. 1, a master-slave system 10 includes a mastercomponent 14 connected to slave components (e.g., a slave component 18a, a slave component 18 b, a slave component 18 c and a slave component18 d). For simplicity, only four slave components are described;however, one of ordinary skill in the art can modify the number of slavecomponents to include any number of slave components.

The master component 14 includes a controller 22. The master component14 provides a supply signal, V_(CC), at a port 24 and ground, a GND, ata port 26. The controller 22 provides commands to the slave components18 a-18 d. The commands include, for example, a wake-up command to wakethe slave components 18 a-18 d from a sleep mode. Another command is areset command to reset circuitry within the slave component. A furthercommand is a determine address command instructing the slave componentsto determine their addresses. The commands are sent by modulating thesupply voltage, V_(CC).

Each of the slave components 18 a-18 d includes a respective input port28 a-28 d, an output port 30 a-30 d and a common port 32 a-32 d. Theslave components 18 a-18 d are connected in a daisy-chain arrangement.For example, the port 24 of the master component 14 is connected to theinput port 28 a of the slave component 18 a by a connection 36 a, theoutput port 30 a of the slave component 18 a is connected to the inputport 28 b of the slave component 18 b by a connection 36 b, the outputport 30 b is connected to the input port 28 c by a connection 36 c andthe output port 30 c is connected to the input port 28 d by a connection36 d. The port 26 of the master component 14 is connected to the commonports 32 a-32 d by a connection 38. In this arrangement, the mastercomponent 14 provides the supply voltage, V_(CC), to the slave component18 a at the input port 28 a, the slave component 18 a provides a supplyvoltage, V_(CC)′, to the slave component 18 b at the input port 28 b,the slave component 18 b provides a supply voltage, V_(CC)″, to theslave component 18 c at the input port 28 c and the slave component 18 cprovides a supply voltage, V_(CC)′″, to the slave component 18 d at theinput port 28 d. In other embodiments, the common ports 32 a-32 d of theslave components 18 a-18 d may be connected in a daisy-chain arrangementwith the port 26 of the master component 14.

The input of each of the input ports 28 a-28 d includes an inputcurrent, I_(CC). The output of each of the output ports 30 a-30 dincludes an output current, I_(out). As will be further described below,each of the slave components 18-18 d measures its output current,I_(OUT), in order to determine if it is the last active slave componentin the daisy chain and if so determines its address. As used herein, thelast active slave component is defined as the slave component furthestfrom the master component 14 in the daisy chain that is not in a sleepmode.

It is important to note that initially for each slave component 18 a-18d there is a current drop between its respective input port 28 a-28 dand output port 30 a-30 d that is equal to a start current. For example,as will be shown, the start current is generated by a start currentsource 220 (FIG. 4). In particular, if the current to the input port 28a from the master component 14 is four times the start current, then thecurrent from the output port 30 a is three times the start current, thecurrent from output port 30 b is two times the start current, thecurrent from output port 30 c is substantially equal to the startcurrent and the current from the output port 30 d is about zero. As willbe further shown below, the slave component 18 d will determine that itis the last active component in the daisy chain based on a current fromthe output port 30 d (the output current, I_(OUT), for the slavecomponent 18 d), determine its address and go into a sleep mode. In anext iteration, the slave component 18 c will determine that it is thelast active slave component in the daisy chain based on a current fromthe output port 30 c (e.g., the output current, I_(OUT), for the slavecomponent 18 c is about equal to zero since the slave component 18 d isin the sleep mode), determine its address and go into the sleep mode.The iterations continue until the slave component 18 a determines itsaddress. In one example, during a first iteration for the first slavecomponent 18 d to determine its address, the current from the mastercomponent 14 to the slave component 18 a is equal to N times the startcurrent, where N is equal to the number of slave components 18 a-18 d inthe system 10.

Referring to FIG. 2, in one example, each of the slave components 18a-18 d may be embodied as a slave component 18′ configured to be asensor device (e.g., a magnetic field sensor device used to detect acondition such as whether a seatbelt is fastened). The slave component18′ includes an input port 28′, an output port 30′, a common port 32′, acurrent detection circuit 102, a control circuit 106, an ID counter 108and a sensor circuit 112. The current detection circuit 102 receives thesupply voltage provided at the input port 28′ from a connection 122 withan input current, I_(CC), and determines the output current, I_(OUT),provided at the output port 30′ through a connection 124. In oneexample, the current detection circuit 102 measures the current bysensing the voltage across a resistor (e.g., a resistor 202 in FIG. 4)having a relatively small resistance (e.g., 0.1 ohms). The sensorcircuit 112 receives the supply voltage from the input port 28′ from aconnection 140 to power the sensor circuit 112.

The control circuit 106 is connected to the input port 28′ by theconnection 122, to the current detection circuit 102 by a connection134, a connection 135 a and a connection 135 b, to a counter 108 by aconnection 136 and to the sensor circuit 112 by a connection 138. Thecontrol circuit 106 receives protocol words from the controller 22through the connection 122 by modulating the supply voltage. Forexample, the control circuit 106 receives a command from the controller22 to increment the counter 108. In another example, the control circuit106 receives a command from the master component 14 to awaken the sensorcircuit 112. As will be shown below, the control circuit 106 determinesif the slave component 18′ is the last active slave component in thedaisy chain based on the output current, I_(OUT), detected by thecurrent detection circuit 102. Once the slave component 18′ determinesthat it is the last active component, it puts itself into a sleep mode.

The various connections described herein may be referred to hereininterchangeably with the signal carried by the respective connection.For example, reference character 134 may be used interchangeably torefer to the connection between the current detection circuit 102 andthe control circuit 106 and a signal associated with such a connection.

Referring to FIG. 3, an example of a process to determine addresses ofslave components 18 a-18 d in the master-slave system 10 is a process150. The master-slave system 10 initializes the slave components 18 a-18d (154). For example, the controller 22 sends a signal (e.g., the resetcommand) to the slave components 18 a-18 d to reset circuitry in thecontrol circuit 106 and the counter 108.

In one example, after the reset command is enabled a general “DetermineAddress Command” is sent from the master component 14 to the slavecomponents 18 a-18 d and a timer (not shown) is triggered. In oneexample, the timer could be either run by the master component or eachslave component 18 a-18 d individually.

While the timer is “on,” each of the slave components 18 a-18 d sensestheir respective output current, I_(OUT) (158). In one example, thoseslave components that determine that they are the last active slavecomponent set their input current, I_(CC), to a high value. The increasein current acts as a positive feedback to avoid errors appearing fromprocess and circuit variations. After the timer has elapsed, only onelast active slave component is found. As will be further discussedbelow, only the true last active slave component will not detect changesin its output current, I_(OUT).

The last active slave component assigns itself the address correspondingto the value stored in the counter 108 (180). Once the timer haselapsed, the last active slave component puts itself into a sleep mode(182). It is determined whether there are any more slave components leftto determine their addresses (186). For example, it is determined if anumber of iterations is equal to the number of slave components in thesystem 10. In another example, it is determined if the total I_(CC)consumption seen by the master component 14 is lower than apredetermined current threshold thereby avoiding the need for the mastercomponent 14 to know the number of slave components 18 a-18 d within thesystem 10. If not, all counters of the remaining active slave componentsare incremented (188). For example, the counter 108 is incremented byone. If all of the slave components 18 a-18 d have assigned themselvesan address, a wake-up signal is sent to the slave components (190). Forexample, the master component 14 sends the wake-up command using thesupply voltage line, V_(CC).

In one example, the master component 14 performs processing block 154including sending the “Determine Address Command.” The individual slavecomponents 18 a-18 d perform processing blocks 158, 180 and 182 (e.g.,as shown in FIG. 5). The master component 14 performs processing block186; and after determining that all the slave components 18 a-18 d havebeen addressed by sensing that the total I_(CC) consumption is lowerthan the predetermined current threshold, performs processing block 190.

Referring to FIG. 4, in one particular embodiment, the slave component18′ may be a slave component 18″ that includes a current detectioncircuit 102′ (e.g., the current detection circuit 102 in FIG. 2), acontrol circuit 106′ (e.g., the control circuit 106 in FIG. 2), acounter 108′ (e.g., the counter 108 in FIG. 2) and a sensor circuit 112′(e.g., the sensor circuit 112 in FIG. 2).

The current detection circuit 102′ includes the resistor 202, a resistor206, a current comparator 204, a first switch 214, a second switch 216,a high current source 218 providing a high current, a start currentsource 220 providing a start current and a threshold current source 224providing a threshold current, I_(TH). In one example, the high currentsource 218 provides about ten times more current than the start currentsource 220 and the threshold current source 224 provides about half asmuch current as the start current source 220. As will be understoodbelow, the threshold current, I_(TH), must be chosen high enough toaccount for the slave components 18 a-18 d in a sleep mode drawing arelatively small amount of current. For example, the threshold current,I_(TH), should be greater that (N−1) times the amount of current drawnby a slave component in the sleep mode, where N is equal to the numberof slave components.

In one example, the start current source 220 is independent of othercircuitry in the slave component 18″. By having the start current source220 independent, the master component 14 will be able to identify afailure of a slave component in the daisy chain. The first switch 214 iscontrolled by a signal 135 a and the second switch 216 is controlled bya signal 135 b each of which will be described below. In one example,the first switch 214 is turned “on” or activated (i.e., the first switch214 is closed) when the signal 135 a has a logical high voltage level.In one example, the second switch 216 is activated when the signal 135 bhas a logical high voltage level.

The current comparator 204 compares the output current, I_(OUT), throughthe resistor 202 with the threshold current, I_(TH), through a resistor206 and provides a signal 134. In one example, if the output current,I_(OUT), is greater than a threshold current, I_(TH), the signal 134 isa logical high voltage level.

The control circuit 106′ includes a first portion 106 a′ and a secondportion 106 b′. The first portion 106 a′ of the control circuit 106′includes a D flip flop circuit 234 and an AND gate 236. A D pin of the Dflip-flop circuit 234 receives the signal 134 from the currentcomparator 204. A Q pin of the D flip-flop circuit 234 provides a signal235 to the AND gate 236 while a Q′ pin provides a signal 235′, logicallyopposite to the signal 235. A clock pin of the D flip-flop circuit 234,CLK, receives a signal 135 b from an inverter 270 and is furtherdescribed below. The AND gate 236 receives the signal 135 b and thesignal 235 to generate the signal 135 a.

The second portion 106 b′ of the control circuit 106′ includes apower-up/reset circuit 252, a control logic circuit 256, an AND gate260, an AND gate 264, a D flip-flop circuit 268 and the inverter 270.The power-up/reset circuit 252 provides a reset signal 254 to thecounter 108′, the D flip-flop circuit 234 and the D flip-flop circuit268.

The control logic 256 provides an increase count signal 258 to the ANDgates 260, 264 and a control signal 262 to the clock pin, CLK, of the Dflip-flop circuit 268. The AND gate 260 receives the signal 235′ andwith the increase count signal 258 provides a count signal 136 to thecounter 108′. The AND gate 264 receives the signal 235 and with theincrease count signal 258 provides a signal 269 to the inverter 270which in turn provides the signal 135 b to the switch 216 and to the ANDgate 234.

A D pin of the D flip-flop circuit 268 is held at a fixed logical state,for example, a logical high state. The D flip-flop circuit receives anoperations signal 262 from the control logic circuit 256 at a clock pin,CLK. In one example, after all the slave components have determinedtheir addresses and are in the sleep mode, the controller 22 provides awake-up command to the slave circuits. The control logic circuit 256interprets the command and provides the operations signal 262 to theclock pin, CLK of the D flip-flop circuit 268. A Q pin of the Dflip-flop circuit 268 provides an awake signal 138 to the sensor circuit112′. In particular, the sensor circuit 112′ includes a switch 280 thatis controlled by the awake signal 138. When the switch 280 is closed(i.e., in the “on” position) the supply voltage from the input port 28′is provided to a sensor system 282. In one example, the sensor system282 is a magnetic field sensor system, for example, including at leastone of a Hall sensor, a magnetoresistive sensor or a magnetic fieldtransducer or any combination thereof. In other examples, the sensorsystem 282 may be other types of sensors, for example, for pressure,acceleration, gyroscopes and so forth.

Referring to FIG. 5, an example of a self-addressing process that theslave component 18″ may perform is a process 300. The slave component18″ receives the supply voltage from the master component 14 (304). Forexample, the slave component 18″ receives the reset command throughmodulations in the supply voltage to reset the logic and the counter108. The slave component 18″ resets the logic and the counter 108 (308).For example, the power-up/reset circuit 252 provides a reset signal 254to the counter 108′, the D flip-flop circuit 234 and the D flip-flopcircuit 268. In one example, the initial conditions include the switch216 being closed, the switch 214 being open, the switch 280 being open,the counter 108 storing a zero value, the signal 135 a having a lowlogic state, the signal 135 b having a high logic state, the signal 235having a low logic state, the increment count signal 258 having a lowlogic state and the operations signal 262 being at a low logic state.

The slave component starts a timer (not shown) (312). For example, thetimer is et for 10 milliseconds. The slave component 18″ determines, ifthe output current, I_(OUT), is less than the threshold current, I_(TH)(316). For example, after the control circuit 106′ receives thedetermine address command from the controller 22 (e.g., by modulatingthe supply voltage), the current comparator 204 compares the currentthrough the resistor 202 (the output current) with the current throughthe resistor 206 (the threshold current).

If the output current, I_(OUT), is less than the threshold current,I_(TH), then the high current source 218 is activated (318). Forexample, the current comparator 204 sends the signal 134 (e.g., at ahigh logic state) to the D flip-flop circuit 234 which provides thesignal 235 (e.g., at a high logic state) to the AND gate 264. With thesignal 135 b (e.g., at a high logic state), the AND gate 264 providesthe signal 135 a (e.g., at a high logic state) to the switch 214 toclose the switch thereby connecting the high current source 218 to theinput port 28′. With the switch 214 closed and the switch 216 closed,I_(CC), becomes equal to the current generated by both the high currentsource 218 and the start current source 220.

Setting the input current, I_(CC), to a higher current reduces thesituation that two slave components (in particular, consecutive slavecomponents) are each determining that they are the last active slavecomponent. For example, manufacturing tolerances in the currentcomparator 204 and the start current source 220 may cause two slavecomponents to determine that they are the last active slave component.By setting the input current, I_(CC), to a higher current value only thereal last active slave component will not see a variation with itsoutput current, I_(OUT), while the slave component before the real lastactive slave component will detect a substantial increase in its outputcurrent, I_(OUT). For example, the slave component prior to the reallast active slave component will detect an increase in its outputcurrent, I_(OUT), because of the greater draw in current due to the highcurrent source 218 in the real active slave component. Thus, the currentcomparator 204 in the slave component prior to the real last activeslave component will now determine that I_(OUT)>I_(TH) and change thelogical state of the signal 234 (e.g., from a high logic state to a lowlogic state) provided to the control circuit 106.

It is determined whether the timer has elapsed (322). If the timer hasnot elapsed then processing block 316 is repeated.

After the timer has elapsed, the slave component 18″ receives a commandfrom the controller 22 to increment the counter (324) and determines ifit is the last active slave component (326). For example, the controllogic 256 receives the command and provides the increment count signal(e.g., at a high logic state) to the AND gates 260, 264. In one example,the controller 22 sends the command to increment the counter at timeintervals equal to the predetermined time for a number of time intervalsequal to the number of slave components 18 a-18 d in system 10. Inanother example, the master component 14 could check for the totalI_(CC) current in the system 10 to go lower than a certain value todetermine that all slave components 18 a-18 d in the system are in sleepmode and therefore all the slave components have obtained theirrespective addresses. Therefore, the master component 14 does not needto know the number of slaves within the system 10.

If the slave component 18″ is the last active slave component, the slavecomponent 18″ determines its address (330). For example, the address isequal to a value stored in the counter 108′. If it is the last activeslave component, the slave component 18″ goes into a sleep mode (332).For example, the AND gate 264, with the increase count signal (e.g., ata high logic state) and the signal 235 (e.g., at a high logic state),provides the signal 269 to the inverter 270 which in turn provides thesignal 135 b (e.g., at a low logic state) to open the switch 216 therebydisconnecting the stall current source 220 from the port 28′. Inaddition, the signal 135 b is provided to the AND gate 236 whichprovides the signal 135 a (e.g., a low logic state) to the switch 214thereby disconnecting the high current source from the port 28′. Thus,the input current, I_(CC), is zero.

The slave component 18″ receives a wake-up signal (336). For example,the controller 22 provides the wake-up command. The control logiccircuit 256 interprets the command and provides the operations signal262 (e.g., at a high logic state) to the clock pin, CLK, of the Dflip-flop circuit 268. The Q pin of the D flip-flop circuit 268 providesthe awake signal 138 (e.g., at a high logic state) to close the switch280 thereby providing the supply voltage from the input port 28′ to thesensor system 282.

If the slave component 18″ is not the last active slave component, thenthe counter 108 is incremented (346). For example, with the signal 235′(e.g., at a logical high state), the AND gate 260 provides the countsignal 136 (e.g., at a high logic state) to the counter 108′ toincrement the counter.

Referring to FIG. 6, one skilled in the art would recognize that system10 in FIG. 1 may be modified so that instead of the master component 14and the slave components 18 a-18 d sharing a common ground connection, asystem 10′ may be implemented that share a common supply voltage. Inparticular, the system 10′ includes slave components 18 a′-18 d′. Eachof the slave components 18 a′-18 d′ includes a respective input port 28a′-28 d′, an output port 30 a′-30 d′ and a common port 32 a′-32 d′. Theslave components 18 a′-18 d′ are connected in a daisy-chain arrangement.For example, the port 26 of the master component 14 (for ground, GND) isconnected to the input port 28 a′ of the slave component 18 a′ by aconnection 36 a′, the output port 30 a′ of the slave component 18 a′ isconnected to the input port 28 b′ of the slave component 18 b′ by aconnection 36 b′, the output port 30 b′ is connected to the input port28 c′ by a connection 36 c′ and the output port 30 c′ is connected tothe input port 28 d′ by a connection 36 d′. The port 24 of the mastercomponent 14 supplying the supply voltage, V_(CC), is connected to theground ports 32 a-32 d by a connection 38′.

FIG. 7 shows an embodiment of the slave component 18′″, which may beused to execute all or part of the process 300. Computer 18′″ includes aprocessor 702, a volatile memory 704 and a non-volatile memory 706(e.g., a hard disk, a flash memory or a magnetoresistive random accessmemory (MRAM) and so forth). Non-volatile memory 706 includes anoperating system 710, data 714, and computer instructions 716 which areexecuted out of volatile memory 704 to perform process 300 or portionsof process 300.

Process 300 is not limited to use with the hardware and software of FIG.7; it may find applicability in any computing or processing environmentand with any type of machine or set of machines that is capable ofrunning a computer program. Process 300 may be implemented in hardware,software, or a combination of the two. Process 300 may be implemented incomputer programs executed on programmable computers/machines that eachincludes a processor, a storage medium or other article of manufacturethat is readable by the processor (including volatile and non-volatilememory and/or storage elements), at least one input device, and one ormore output devices. Program code may be applied to data entered usingan input device to perform process 300 and to generate outputinformation.

The system may be implemented, at least in part, via a computer programproduct. For example, a computer program may be deployed to be executedon one computer or on multiple computers at one site or distributedacross multiple sites and interconnected by a communication network. Acomputer program may be stored on a storage medium or device (e.g., aCD-ROM, a hard disk, a magnetic diskette or flash memory storage device)that is readable by a general or special purpose programmable computerfor configuring and operating the computer when the storage medium ordevice is read by the computer to perform process 300. Process 300 mayalso be implemented as a machine-readable storage medium, configuredwith a computer program, where upon execution, instructions in thecomputer program cause the computer to operate in accordance withprocess 300.

The processes described herein are not limited to the specificembodiments described herein. For example, the processes are not limitedto the specific processing order of the processing blocks in FIGS. 3 and5. Rather, any of the processing blocks of FIGS. 3 and 5 may bere-ordered, combined or removed, performed in parallel or in serial, asnecessary, to achieve the results set forth above.

Referring to FIG. 8, in other embodiments, each electrical component 818in a daisy chain may be configured like the slave component 18′ andfurther include a timer 900. In this configuration, a master component14 is not required to control the addressing. Rather, each electricalcomponent goes into a self-addressing mode (e.g., process 300 in FIG. 5)when first powered up. The timer 900 runs in an asynchronous operationso that each electrical component 818 in the daisy chain has sufficienttime to determine its respective address. Each electrical component 818part will individually increase its respective counter 108 if itdetermines it is not the last electrical component. Thus, a mastercomponent 14 is not needed as a constitutive part and can just simplypoll the electrical components for the addresses after self-addressingis complete. In one example, the master component 14 is a computer in acar. In one example, the timer 900 is within the control circuit 106;however, the timer 900 may be located anywhere within the electricalcomponent 818 including being a separate circuit.

Elements of different embodiments described herein may be combined toform other embodiments not specifically set forth above. Otherembodiments not specifically described herein are also within the scopeof the following claims.

1. A system, comprising: electrical components arranged in a daisy chain and comprising: a first electrical component disposed at a first end of the daisy chain; and a second electrical component disposed at an opposite end of the daisy chain than the first end, each of the first and second electrical components comprising: an input port; an output port; and a common port, wherein the first electrical component is directly coupled to a master component by no more than two connections comprising a first connection and a second connection; wherein the input port of the first electrical component is directly coupled to one of a supply voltage port of the master component or a ground port of the master component by the first connection and the common ports of the first and second electrical components are coupled to the other one of the supply voltage of the master component or the ground port of the master component by the second connection, wherein an address of the second electrical component is determined before addresses of the other of the electrical components are determined and the addresses of the electrical components determine a position of an electrical component with respect to the other of the electrical components in the daisy chain.
 2. The system of claim 1 wherein each of the electrical components further comprises a timer set to a predetermined time and the electrical components are configured to determines their respective addresses at power-up within the predetermined time.
 3. The system of claim 1 wherein the electrical components are slave components, the first electrical component is a first slave component and the second electrical component is a second slave component, and further comprising: a master component comprising: a supply voltage port to provide the supply voltage; and a ground port to supply the ground.
 4. The system of claim 1 wherein each of the first and second electrical components further comprises: a current detection circuit configured to measure an output current at the output port; a counter used to determine an address of the electrical component; a sensor circuit; and a control circuit directly coupled to the input port, the current detection circuit, the counter and the sensor circuit.
 5. The system of claim 4 wherein the control circuit is configured to receive at least one command from a master component and based on the at least one command is configured to control a counter value of the counter based on the output current to determine the address of the electrical component.
 6. The system of claim 4 wherein the current detection circuit comprises: a first resistor; a second resistor; a first current source configured to provide a threshold current to the first resistor; a second current source coupled to the input port through a first switch and configured to provide a start current; and a comparator configured to compare the output current with the threshold current.
 7. The system of claim 6 wherein a current from the supply voltage port of the master component is equal to N times the start current, where N is equal to a number of slave components in the daisy chain.
 8. The system of claim 6 wherein the current detection circuit further comprises a third current source coupled to the input port through a second switch and configured to provide a high current, the high current being greater than the start current, wherein the second switch is turned on when the comparator determines that the output current is less than the threshold current.
 9. The system of claim 8 wherein the threshold current is equal to about half of the start current and the high current is equal to about ten times the start current.
 10. The system of claim 4 wherein the control circuit comprises: a reset circuit configured to reset the counter and circuitry in the control circuit; and a control logic circuit configured to receive the at least one command and to provide control signals based on the at least one command.
 11. The system of claim 4 wherein the sensor circuit is a magnetic field sensor circuit.
 12. A method, comprising: determining addresses of slave components in a master-slave system comprising a master component and slave components in which a first slave component is disposed at a first end of the daisy chain and directly coupled to the master component by no more than two connections and a second slave component is disposed at an opposite end of the daisy chain from the first end, the determining comprising: receiving at least one signal from the master component; and determining the addresses of slave components arranged in the daisy chain based on the at least one signal by determining an address of the second slave component before determining addresses of the other of the slave components and by determining a position of a slave component with respect to the other of the slave components.
 13. The method of claim 12 wherein each of the first and second slave components comprises an input port, an output port, a counter, a current detection circuit and a control logic circuit, and wherein determining the addresses further comprises, for each of the first and second slave components: receiving an input current at the input port having a first current value; sensing an output current at the output port; and comparing the output current to a threshold current.
 14. The method of claim 13 wherein if the output current is less than the threshold current, determining the addresses for each of the first and second slave components further comprises: increasing an input current to a value higher than the first current value; determining the address based on the counter value; and placing the slave component in a sleep mode.
 15. The method of claim 13 wherein determining the addresses for each slave component further comprises if the output current is greater than the threshold current incrementing a value stored in the counter.
 16. The method of claim 13 wherein comparing the output current to a threshold current comprises comparing the output current to the threshold current having a current equal to about one-half as much as the first current value.
 17. The method of claim 16 wherein increasing an input current to a value higher than the first current value comprises increasing an input current to a value equal to about ten times the first current value.
 18. The method of claim 17 wherein increasing an input current to a value higher than the first current value comprises activating a current source connected to the input port.
 19. An electrical component disposed in a daisy chain, comprising an input port; an output port; a third port; a current detection circuit connected to the input port, the output port and the third port and configured to measure an output current at the output port; a counter used to determine an address of the electrical component; a sensor circuit; and a control logic circuit coupled to the input port, the current detection circuit, the counter and the sensor circuit, wherein the control logic circuit is configured to determine the address of the electrical component based on the output current, wherein the address of the electrical component determines a position of the electrical component with respect to other electrical components disposed in the daisy chain, wherein the electrical component is configured to determine its address first if disposed with other like electrical components in a daisy chain at an opposite end of the daisy chain from an electrical component directly coupled to a master component by no more than two connections.
 20. The electrical component of claim 19, further comprising a timer set to a predetermined time, and wherein the electrical component is configured to determine its respective address at power-up within the predetermined time.
 21. The electrical component of claim 19 wherein the current detection circuit comprises: a first resistor; a second resistor; a first current source configured to provide a threshold current to the first resistor; a second current source connected in series with a first switch to the input port and configured to provide a start current; and a comparator configured to compare the output current with the threshold current.
 22. The electrical component of claim 19 wherein a current from the master component is equal to N times the start current, where N is equal to a number of slave components in the daisy chain.
 23. The electrical component of claim 19 wherein the current detection circuit further comprises a third current source connected in series with a second switch to the input port and configured to provide a high current, the high current being greater than the start current, wherein the second switch is turned on when the comparator determines that the output current is less than the threshold current.
 24. The electrical component of claim 19 wherein the threshold current is equal to about one-half of the start current and the high current is about equal to ten times the start current.
 25. The electrical component of claim 19 wherein the control logic circuit is configured to determine the address of the electrical component based on the output current and at least one command received from a master component.
 26. The electrical component of claim 25 wherein the control circuit further comprises: a reset circuit configured to reset the counter and circuitry in the control circuit; and a control logic circuit configured to receive the at least one command and to provide control signals based on the at least one command.
 27. The electrical component of claim 19 wherein the sensor circuit is a magnetic field sensor circuit.
 28. An article comprising: a machine-readable medium that stores executable instructions to determine an address of an unknown slave component in a master-slave system comprising a master component and slave components in which a first slave component is disposed at a first end of the daisy chain and directly coupled to the master component by no more than two connections and a last slave component is disposed at an opposite end of the daisy chain from the first end, the instructions causing a machine to: receive at least one signal from the master component; and determine the address of the unknown slave component arranged in the daisy chain based on the at least one signal, wherein the instructions causing a machine to determine the address of the unknown slave component comprises instructions causing a machine to determine the address of the unknown slave component before determining addresses of the other of the slave components if the unknown slave component is the last slave component, and wherein the instructions causing a machine to determine the address of the unknown slave component comprises instructions causing a machine to determine a position of the unknown slave component with respect to the other of the slave components.
 29. The article of claim 28 wherein the unknown slave component comprises an input port, an output port, a counter, a current detection circuit and a control logic circuit, and wherein the instructions causing a machine to determine the address of the unknown slave component further comprises instructions causing a machine to: receive an input current at the input port having a first current value; sense an output current at the output port; and compare the output current to a threshold current.
 30. The article of claim 28 wherein if the output current is less than the threshold current, and further comprising instructions causing a machine to: increase an input current to a value higher than the first current value; determine the address based on the counter value; and placing the slave component in a sleep mode.
 31. The article of claim 28 wherein the instructions causing a machine to determine the address of the unknown slave component further comprises instructions causing a machine to increment a value stored in the counter if the output current is greater than the threshold current.
 32. The article of claim 28 wherein the instructions causing a machine to compare the output current to a threshold current comprises instructions causing a machine to compare the output current to the threshold current having a current equal to about one-half as much as the first current value.
 33. The article of claim 32 wherein the instructions causing a machine to increase an input current to a value higher than the first current value comprises instructions causing a machine to increase an input current to a value equal to about ten times the first current value.
 34. The article of claim 33 wherein the instructions causing a machine to increase an input current to a value higher than the first current value comprises instructions causing a machine to activate a current source connected to the input port.
 35. A system, comprising: electrical components arranged in a daisy chain and comprising: a first electrical component disposed at a first end of the daisy chain; and a second electrical component disposed at an opposite end of the daisy chain than the first end, each of the first and second electrical components comprising: an input port; an output port; and a third port, wherein the first electrical component is directly coupled to a master component by no more than two connections; wherein the input port of the first electrical component is directly coupled to one of a supply voltage port of the master component or a ground port of the master component and the third port of the first electrical component is coupled to the other one of the supply voltage of the master component or the ground port of the master component, wherein an address of the second electrical component is determined before addresses of the other of the electrical components are determined and the addresses of the electrical components determine a position of an electrical component with respect to the other of the electrical components in the daisy chain.
 36. The system of claim 35 wherein each of the electrical components further comprises a timer set to a predetermined time and the electrical components are configured to determines their respective addresses at power-up within the predetermined time.
 37. The system of claim 35 wherein the electrical components are slave components, the first electrical component is a first slave component and the second electrical component is a second slave component, and further comprising: a master component comprising: a supply voltage port to provide the supply voltage; and a ground port to supply the ground.
 38. The system of claim 35 wherein each of the first and second electrical components further comprises: a current detection circuit configured to measure an output current at the output port; a counter used to determine an address of the electrical component; a sensor circuit; and a control circuit connected to the input port, the current detection circuit, the counter and the sensor circuit.
 39. The system of claim 38 wherein the sensor circuit is a magnetic field sensor circuit.
 40. The system of claim 39 wherein the magnetic field sensor circuit comprises at least one of a Hall sensor or a magnetoresistive sensor. 